<script type="text/javascript">
    var BASE_URI = "<?php echo base_url()?>";
    var sessid = "<?php echo session_id() ?>";
    var uid = "<?php echo intval(get_instance()->session->userdata('helper_id'))?>";
    var pageName = "<?php echo get_instance()->router->method ?>";
</script>
<script src="<?php echo full_static_url('js/jquery-1.11.1.min.js'); ?>"></script>
<script src="<?php echo full_static_url('js/jquery.iextend.js'); ?>"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->

<script src="<?php echo full_static_url('bootstrap_ace/js/bootstrap.js'); ?>"></script>
<script src="<?php echo full_static_url('bootstrap_ace/js/ace/ace.js'); ?>"></script>
<script src="<?php echo full_static_url('bootstrap_ace/js/ace/ace.sidebar.js'); ?>"></script>
<script src="<?php echo full_static_url('bootstrap_ace/js/ace/ace.sidebar-scroll-1.js'); ?>"></script>
<script	src="<?php echo full_static_url('js/My97DatePicker/WdatePicker.js'); ?>"></script>
<script src="js/highslide/highslide.packed.js"></script>
<script src="<?php echo full_static_url('js/jquery.form.js'); ?>"></script>
<script src="<?php echo full_static_url('js/jquery.listtable.js'); ?>"></script>

<script src="<?php echo full_static_url('js/ucenter.js'); ?>"></script>
<script src="<?php echo full_static_url('js/utils.js'); ?>"></script>
<script src="<?php echo full_static_url('js/iregion.js'); ?>"></script>


<!--读卡器配置-->
<p align="center">
	<object classid="clsid:8B5A1D0B-4142-4EE1-B247-56DFD7C1CACA" id="obj_ie" width="6" height="14" align="left"></object>
</p>
<embed id="obj_firefox_chrome" style="position: absolute; z-index: -100; width: 0px;" type="application/mozilla-npruntime-scriptable-plugin">

	<script>
		/*这里是对读卡信息的配置*/
        var is_physical = <?php echo isset($_SESSION['facility_card_info']['sector']) ? 0 : 1;?>	// 这个判断是否是读取物理卡号，还是读取扇区
        var gl_sector = <?php echo isset($_SESSION['facility_card_info']['sector']) ? $_SESSION['facility_card_info']['sector'] : 0;?>;
        var gl_BinBlock = gl_sector*4+1;
        var gl_BinBlock_t = gl_BinBlock+1;
	</script>
	<script src="<?php echo full_static_url('js/web-nfc.js'); ?>"></script>
	<!--end读卡配置-->

	<script type="text/javascript">
        $(document).on('click', '#tmpFileList .imgLi',function(evt) {
            evt.preventDefault();
            $("#tmpFileList .imgLi").removeClass('curr');
            $(this).addClass('curr');
            $('#tmpFileList [name="file_id"]').val($(this).attr('data-id'));
        })
        if(uid > 0){
            if(pageName == 'signin'){
                //window.location = BASE_URI;
            }
        }else{
            var logoText = $('#logoText').html();
            if(pageName != 'signin'){
                $('#logoText').append('-> Login Timeout!');
                //window.location = "<?php echo site_url('privilege/signin')?>";
            }else{
                $('#logoText').html(logoText);
            }
        }
	</script>